package vip.xiaonuo.modular.param;

import vip.xiaonuo.core.pojo.base.param.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import java.util.*;

/**
* 考生成绩表参数类
 *
 * @author 春非昔日春
 * @date 2023-03-08 16:33:52
*/
@Data
public class ResultParam extends BaseParam {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空，请检查userId参数", groups = {add.class, edit.class})
    private Long userId;

    /**
     * 用户名称
     */
    @NotNull(message = "用户姓名不能为空，请检查userName参数", groups = {add.class, edit.class})
    private String userName;

    /**
     * 语文成绩
     */
    @NotNull(message = "语文成绩不能为空，请检查chinese参数", groups = {add.class, edit.class})
    private Double chinese;

    /**
     * 数学成绩
     */
    @NotNull(message = "数学成绩不能为空，请检查math参数", groups = {add.class, edit.class})
    private Double math;

    /**
     * 英语成绩
     */
    @NotNull(message = "英语成绩不能为空，请检查english参数", groups = {add.class, edit.class})
    private Double english;

}
